API Documentation
Static Public Member Functions | List of all members
nkGraphics::MeshLoader Class Referencefinal

Loader for mesh data. Parses different formats to populate the data inside meshes. More...

Static Public Member Functions

static bool fillBufferFromFile (Mesh *mesh, const nkMemory::StringView &pathFromData)
 
static MeshLoadResult loadMesh (const MeshLoadQuery &query)
 

Detailed Description

Loader for mesh data. Parses different formats to populate the data inside meshes.

Currently can parse obj and some glb.

Member Function Documentation

◆ fillBufferFromFile()

static bool nkGraphics::MeshLoader::fillBufferFromFile ( Mesh mesh,
const nkMemory::StringView pathFromData 
)
static

Fills a mesh's memory with the content of a file.

Parameters
meshThe mesh to fill.
pathFromDataThe path of the mesh data file, relative to the working directory. See nkResources::ResourceManager for path naming conventions.
Returns
Whether the filling went well (true) or not (false).

◆ loadMesh()

static MeshLoadResult nkGraphics::MeshLoader::loadMesh ( const MeshLoadQuery &  query)
static

Currently WIP, should not be used.


The documentation for this class was generated from the following file: